package com.storm.auth.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.storm.auth.model.table.Resource
import com.storm.auth.model.table.User
import com.storm.auth.model.table.UserRole
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Repository

@Repository
interface UserMapper:BaseMapper<User>

@Repository
interface UserRoleMapper:BaseMapper<UserRole>


@Repository
interface ResourceMapper:BaseMapper<UserRole>{

    fun getResourceListByUserId(@Param("userId") userId: String): ArrayList<Resource>

}